package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ConnectingFlightMapper;
import com.ruoyi.system.domain.ConnectingFlight;
import com.ruoyi.system.service.IConnectingFlightService;

/**
 * 中转航班Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-10
 */
@Service
public class ConnectingFlightServiceImpl implements IConnectingFlightService 
{
    @Autowired
    private ConnectingFlightMapper connectingFlightMapper;

    /**
     * 查询中转航班
     * 
     * @param id 中转航班主键
     * @return 中转航班
     */
    @Override
    public ConnectingFlight selectConnectingFlightById(Long id)
    {
        return connectingFlightMapper.selectConnectingFlightById(id);
    }

    /**
     * 查询中转航班列表
     * 
     * @param connectingFlight 中转航班
     * @return 中转航班
     */
    @Override
    public List<ConnectingFlight> selectConnectingFlightList(ConnectingFlight connectingFlight)
    {
        return connectingFlightMapper.selectConnectingFlightList(connectingFlight);
    }

    /**
     * 新增中转航班
     * 
     * @param connectingFlight 中转航班
     * @return 结果
     */
    @Override
    public int insertConnectingFlight(ConnectingFlight connectingFlight)
    {
        return connectingFlightMapper.insertConnectingFlight(connectingFlight);
    }

    /**
     * 修改中转航班
     * 
     * @param connectingFlight 中转航班
     * @return 结果
     */
    @Override
    public int updateConnectingFlight(ConnectingFlight connectingFlight)
    {
        return connectingFlightMapper.updateConnectingFlight(connectingFlight);
    }

    /**
     * 批量删除中转航班
     * 
     * @param ids 需要删除的中转航班主键
     * @return 结果
     */
    @Override
    public int deleteConnectingFlightByIds(Long[] ids)
    {
        return connectingFlightMapper.deleteConnectingFlightByIds(ids);
    }

    /**
     * 删除中转航班信息
     * 
     * @param id 中转航班主键
     * @return 结果
     */
    @Override
    public int deleteConnectingFlightById(Long id)
    {
        return connectingFlightMapper.deleteConnectingFlightById(id);
    }
}
